package com.bank.frame;

import javax.swing.JFrame;
import javax.swing.JPanel;

import com.bank.frame.LoginPanel;
import com.bank.pojo.User;
import com.bank.utils.SystemConstants;

public class MainFrame {
	public static final JFrame frame = new JFrame("银行账户管理系统");
	public static User user;     // 当前登录的用户

	public static void main(String[] args) {
		frame.setSize(SystemConstants.FRAME_WIDTH, SystemConstants.FRAME_HEIGHT);
		frame.setLocationRelativeTo(null);
		frame.setVisible(true);
		frame.setContentPane(new LoginPanel());
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

	public static void setContent(JPanel panel) {
		frame.setContentPane(panel);
	}
}
